package rdbms

import (
	"database/sql"
	"time"
)

// Env database init params.
type Env struct {
	ConnectParams   interface{}
	MaxIdle         int
	MaxOpen         int
	ConnMaxLifetime time.Duration
}

// ConnectManager func define
type ConnectManager interface {
	Init(*Env) (*sql.DB, error)
	Destroy(*sql.DB) error
}
